Skip to content

Fix width of strong typed integers#751

Closed
wvpm wants to merge 1 commit into
masterfrom
fix_width_strong_typed_integers
Closed

Fix width of strong typed integers#751
wvpm wants to merge 1 commit into
masterfrom
fix_width_strong_typed_integers

Conversation

@wvpm
Copy link
Copy Markdown
Contributor

@wvpm wvpm commented May 22, 2026

All of our indices fit within uint16_t. We want to avoid size_t as it is platform dependent and causes issues for macos in godot.

@wvpm wvpm requested a review from a team as a code owner May 22, 2026 09:38
@wvpm
Copy link
Copy Markdown
Contributor Author

wvpm commented May 22, 2026

Shelved for now due to IndexedFlatMap issues and other PRs editing that type...

@wvpm wvpm closed this May 22, 2026
@Spartan322
Copy link
Copy Markdown
Member

I would suggest that it be best to simply be explicit with the godot bindings and not be clever with them, the only case where this turns into an issue despite that is assigning a size_to to a dictionary, which could be a justification but we should really not be relying on dictionaries being passed to godot anyway, its only being left around to avoid refactoring it twice as consequence of the potential ECS refactor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants